package e.odbo.data.dao;

import e.odbo.data.bean.IKeyed;

import java.io.Serializable;

public class ParentNode<T> implements I_ParentNode<T>, Serializable {
    /**
     *
     */
    private static final long serialVersionUID = -6335806113372218840L;
    IKeyed<T> key;
    Class parentClass;

    public ParentNode(I_ParentNode<T> warp) {
        this(warp.getParentKey(), warp.getParentClass());
    }


    public ParentNode(IKeyed<T> key, Class parentClass) {
        super();
        this.key = key;
        this.parentClass = parentClass;
    }

    @Override
    public IKeyed<T> getParentKey() {
        return key;
    }

    @Override
    public Class getParentClass() {
        return parentClass;
    }

}
